<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%--
  Created by IntelliJ IDEA.
  User: Ishara Samantha
  Date: Jun 25, 2010
  Time: 12:14:59 PM
  
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head><title>The User login Required pages</title></head>
  <body>
  <br>
  <%
     UserService userService = UserServiceFactory.getUserService();
     if (!userService.isUserLoggedIn()) {
   %>
      Please <a href="<%=userService.createLoginURL("/")%>">log in</a>>
   <% } else { %>
      Welcome, <%= userService.getCurrentUser().getNickname() %>!
        (<a href="<%=userService.createLogoutURL("/")%>">log out</a>)
   <%
     }
   %>
  <br>
  The User login Required pages  , Login with Open ID
  </body>
</html>